package com.mooo;

import java.util.Scanner;

public class a06 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个整数");
        int num = sc.nextInt();
        if (num % 3 == 0 && num % 5 == 0 && num % 7 == 0) {
            System.out.println("能同时被3,5,7整除");
        } else if (num % 3 == 0 && num % 5 == 0 && num % 7 != 0){
            System.out.println("能同时被3，5整除");
        }else if (num % 3 == 0 && num % 5 != 0 && num % 7 == 0){
            System.out.println("能同时被3，7整除");
        }else if (num % 3 != 0 && num % 5 == 0 && num % 7 == 0){
            System.out.println("能同时被5，7整除");
        }else if (num % 3 == 0 && num % 5 != 0 && num % 7 != 0){
            System.out.println("能被3整除");
        }else if (num % 3 != 0 && num % 5 == 0 && num % 7 != 0){
            System.out.println("能被5整除");
        }else if (num % 3 != 0 && num % 5 != 0 && num % 7 == 0){
            System.out.println("能被7整除");
        }else{
            System.out.println("不能被3,5,7任一个整除");
        }
    }
}
